package com.block.datapush.form.item.util;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class DianDai3Util {


    public static Integer getLoanAmount(String loanAmount){
        if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la003.getValue(),loanAmount)){
            return 1201;
        }
        return 1201;
    }

    public static Integer getZhiMa(String zhima){
        if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm005.getValue(),zhima)){
            return 1102;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm004.getValue(),zhima)){
            return 1101;
        }
        return 1100;
    }

    public static Integer getHuaBei(String huabei){
        if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb001.getValue(), huabei)){
            return 700;
        }
        return 701;
    }

    public static Integer getBaiTiao(String baitiao){
        if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt001.getValue(), baitiao)){
            return 800;
        }
        return 801;
    }
    public static Integer getcar(String car){
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)){
            return 200;
        }
        return 201;
    }
    public static Integer gethouse(String house){
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)){
            return 100;
        }
        return 101;
    }

    public static Integer getbaoxian(String baoxian){
        if (StrUtil.equals(BaseTypeInfoEnum.Insurance.in001.getValue(), baoxian)){
            return 500;
        }
        return 501;
    }

    public static Integer getGjj(String GJJ){
        if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj001.getValue(), GJJ)){
            return 300;
        }
        return 301;
    }

    public static Integer getshebao(String shebao){
        if (StrUtil.equals(BaseTypeInfoEnum.SocialInsurance.si001.getValue(), shebao)){

            return 400;
        }
        return 401;
    }

    public static Integer getyuqi(String yuqi){
        if (StrUtil.equals(BaseTypeInfoEnum.Yuqi.yq001.getValue(), yuqi)){

            return 1000;
        }
        return 1001;
    }
    public static Integer getjob(String job){
        if (StrUtil.equals(BaseTypeInfoEnum.Job.job002.getValue(), job)){

            return 601;
        }
        return 600;
    }



}
